package com.gobo.eduservice.clients;

import com.gobo.eduservice.clients.degradeimpl.OrderServiceClientImp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "service-order",fallback = OrderServiceClientImp.class)
@Component
public interface OrderServiceClient {

    @PostMapping("/orderservice/order/getOrderStatus/{courseId}/{memberId}")
    public boolean getOrderStatusByCourseIdAndMemberId(@PathVariable("courseId") String courseId, @PathVariable("memberId") String memberId);

}